package com.itljm.cxrMarket.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itljm.cxrMarket.entity.Products;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface ProductsService extends IService<Products> {

    List<Products> selectProductPage(Page<Products> page, Wrapper<Products> entityWrapper);
    // 新增或修改商品
    boolean saveProduct(Products entity);
    boolean deleteProductById(Integer id);
    List<Products> selectProductByCategoryId(Integer categoryId);
    Products selectProductById(Integer id);
    boolean updateProductStatusByMerchantId(Integer merchantId, Integer status);
}
